using System;
using System.Text;

namespace Lib.Exceptions
{
	public class RuleException : GenericException
	{
		#region Construtores
       public RuleException(string message, Exception innerException)
            : base(message, innerException)
        {
            this.UserMessage = message;
            this.SystemMessage = innerException.Message;
            this.ExceptionType = ExceptionTypes.RuleException;
            this.Log(this);
        }

        public RuleException(string message)
            : base(message)
        {
            this.UserMessage = message;
            this.ExceptionType = ExceptionTypes.RuleException;
        }
		#endregion

	}
}
